module(
    name = "rabbitmq_delayed_message_exchange",
    version = "4.0.0",
)

bazel_dep(
    name = "gazelle",
    version = "0.29.0",
    repo_name = "bazel_gazelle",
)

bazel_dep(
    name = "rules_erlang",
    version = "3.10.6",
)

erlang_config = use_extension(
    "@rules_erlang//bzlmod:extensions.bzl",
    "erlang_config",
    dev_dependency = True,
)

use_repo(
    erlang_config,
    "erlang_config",
)

bazel_dep(
    name = "rabbitmq-server",
    version = "4.0.0",
)

archive_override(
    module_name = "rabbitmq-server",
    strip_prefix = "rabbitmq-server-4.0.x",
    urls = [
        "https://github.com/rabbitmq/rabbitmq-server/archive/refs/heads/v4.0.x.zip",
    ],
)

elixir_config = use_extension(
    "@rabbitmq-server//bazel/bzlmod:extensions.bzl",
    "elixir_config",
    dev_dependency = True,
)

use_repo(
    elixir_config,
    "elixir_config",
)

rbe = use_extension(
    "@rabbitmq-server//bazel/bzlmod:extensions.bzl",
    "rbe",
)

use_repo(
    rbe,
    "rbe",
)
